package com.biconn.bigdata.common.constant;

/**
 * 通用常量信息
 * 
 * @author zhoutianqi
 */
public class Constants
{
    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
      * 通用成功标识
     */
    public static final String SUCCESS = "0";

    /**
      * 通用失败标识
     */
    public static final String FAIL = "1";

    /**
       * 登录成功
     */
    public static final String LOGIN_SUCCESS = "Success";

    /**
      * 注销
     */
    public static final String LOGOUT = "Logout";

    /**
      * 登录失败
     */
    public static final String LOGIN_FAIL = "Error";

    /**
      * 自动去除表前缀
     */
    public static String AUTO_REOMVE_PRE = "true";

    /**
        * 当前记录起始索引
     */
    public static String PAGENUM = "pageNum";

    /**
      * 每页显示记录数
     */
    public static String PAGESIZE = "pageSize";

    /**
      * 排序列
     */
    public static String ORDERBYCOLUMN = "orderByColumn";

    /**
      * 排序的方向 "desc" 或者 "asc".
     */
    public static String ISASC = "isAsc";
    //信息唯一标识
    private static String MD5_MARK_OF_MESSAGE = "MD5No";
    
    /**
     * kafka QUESTION_AND_ANSWER topic
     */
    //topic of sending message to for python
    public static String SCRAPY_QUESTION_AND_ANSWER_TOPIC = "kafka.scrapy.question.and.answer";
    //消息在jstorm中流转时使用的标记
    public static String QUESTION_AND_ANSWER_JSTORM_RESULT_TOPIC = "question_and_answer_result_topic_to_kafka";
    //jstorm流处理后发送到该topic
    public static String KAFKA_QUESTION_AND_ANSWER_RESULT_TOPIC = "question_and_answer_result_topic";
    //mongodb中存储的collection
    public static String MONGO_QUESTION_AND_ANSWER_COLLECTION = "question_and_answer";
    //ask_content 做MD5   唯一索引
    public static String MONGO_QUESTION_AND_ANSWER_UNIQUE_COLLECTION = "question_and_answer_unique";
    //问答数据在ES的索引名
    public static String QUESTION_AND_ANSWER_ES_INDEX_NAME = "question_and_answer_index";
    //问答数据在ES的type
    public static String QUESTION_AND_ANSWER_ES_TYPE = "questionAndAnswer";
}
